package com.java.main;

import test.java.enumeration.Land_Enums;

public class main_enum {

  /**
   * @param args
   */
  public static void main (String[] args) {
    String landc = "China";
    String landg = "Germany";

    Land_Enums la = Land_Enums.America;
    Land_Enums lc = Land_Enums.fromValue (landc);
    Land_Enums lg = Land_Enums.fromValue (landg);

    ShowInfoOfLand (la);
    ShowInfoOfLand (lc);
    ShowInfoOfLand (lg);

    Land_Enums.showAll ();

  }

  private static void ShowInfoOfLand (Land_Enums lande) {

    System.out.println ("Land.value : " + lande.value ());
    System.out.println ("Land.landname : " + lande.getLandName ());

  }

}
